Geo geocache icon mappings on input.
authorrobertl <robertl>
Sun, 23 Feb 2003 01:23:40 +0000 (01:23 +0000)
committerrobertl <robertl>
Sun, 23 Feb 2003 01:23:40 +0000 (01:23 +0000)
mapsource.c

index 1a74779cadb34624240dfb2eabcd0055098c2b57..76820e32be935604890ac159db1a73f5eea01ad8 100644 (file)
@@ -203,6 +203,7 @@ static icon_mapping_t icon_table[] = {
        { 16402, "Seaplane Base" },
 
 #if SOMEONE_ELSE
+/* FIXME: Find icons for these */
        { 1, "Virtual cache"},
        { 2, "Micro-Cache"},
        { 3, "Multi-Cache"},
@@ -218,7 +219,6 @@ arglist_t mps_args[] = {
        {0, 0, 0}
 };
 
-
 const char *
 mps_find_desc_from_icon_number(const int icon)
 {
@@ -383,6 +383,10 @@ mps_waypt_pr(const waypoint *wpt)
 
        icon = mps_find_icon_number_from_desc(wpt->icon_descr);
 
+       if (get_cache_icon(wpt)) {
+               icon = mps_find_icon_number_from_desc(get_cache_icon(wpt));
+       }
+
        le_write32(&reclen, reclen);
        fwrite(&reclen, 4, 1, mps_file_out);
        fwrite("W", 1, 1, mps_file_out);